let {defineConfig} = require("@vue/cli-service");
let {VantResolver} = require("unplugin-vue-components/resolvers");
let ComponentsPlugin = require("unplugin-vue-components/webpack");

module.exports = defineConfig({
    publicPath: "./",
    transpileDependencies: true,
    configureWebpack: {
        plugins: [ComponentsPlugin({
            resolvers: [VantResolver()]
        })]
    },
    devServer:{
        port:8888,
        host:'localhost',
        https:false,
        open:false,
        client: {
            overlay: false,
        },
        proxy:{
            '/dev-api':{
                target:'http://localhost:8128',
                changOrigin:true,
                pathRewrite:{
                    '^/dev-api':''
                }
            }
        }
    },
});
